<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>05-el的另外写法</title>
  <script src="./js/vue.js"></script>
</head>
<body>
  <div id="app">
  <!-- <div class="demo"> -->
    <p>{{msg}}</p>
  </div>
  <script>
    // el的三种写法: id  类  标签对象
    const vm = new Vue({
      // el:'#app',
      // el: '.demo',
      // el: document.querySelector('.demo'),
      el: document.getElementById('app'),
      // el: document.getElementsByTagName('div')[0],
      data: {
        msg: 'Hello ABABACCC'
      }
    })
  </script>
</body>
</html>